#pragma once

#include "Vector3d.h"

class RenderObject;

class TraceResult
{
public:
	static TraceResult empty;
	bool hit;
	double distance;
	RenderObject * object;
	Vector3d normal;
	Vector3d point;

	TraceResult();
	TraceResult(bool hasHit,double dist,Vector3d hitpoint,Vector3d norm,RenderObject * obj);
	~TraceResult(void);

	 friend bool operator< (TraceResult &a,TraceResult &b)
	 {
		 return (a.distance < b.distance);
	 }
};

